package com.atguigu.tingshu;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.impl.SearchDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "service-search", path = "api/search", fallback = SearchDegradeFeignClient.class)
public interface SearchFeignClient {

    /**
     * 更新排行榜
     * @return
     */
    @GetMapping("/albumInfo/updateLatelyAlbumRanking")
    Result updateLatelyAlbumRanking();
}
